package com.sgj.common.utils;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.StrUtil;

import java.util.List;

/**
 * @Author: Guoji Shen
 * @Date: 2022/1/21 15:54
 */
public class StringUtil extends StrUtil {

    public static String convertStr(List<String> list) {
        if (CollUtil.isEmpty(list)) {
            return null;
        }
        return Convert.toStr(list).replace("[", "").replace("]", "").trim();
    }
}